package com.aptemo.webetek.client.widgets;

import com.aptemo.webetek.shared.LoginBean;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;

public class HeaderWidget
		extends Composite
{

	private static IntroUiBinder	uiBinder	= GWT.create(IntroUiBinder.class);

	interface IntroUiBinder extends UiBinder<Widget, HeaderWidget>
	{
	}

	@UiField
	Label	emailField;

	public HeaderWidget(LoginBean login)
	{
		initWidget(uiBinder.createAndBindUi(this));

		emailField.setText(login.getEmail());
	}
}
